package day02;

import com.sun.xml.internal.ws.runtime.config.TubelineFeatureReader;

import javax.xml.bind.SchemaOutputResolver;

public class 基础作业 {
    public static void main(String[] args) {
        //1)变量
       /*int a;
        int e,b,c,d,f;
        //int a;
        int m=1;
        int u;
        u=1;
        int g=15;
        int h=g+10;
        System.out.println(h);
        System.out.println("h");
        //byte p=128;
        int l=1000000000;
        //int t=3.14;
        int a_7;
        //int  *+-;*/
        //2)基本数据
       /* int a=6;
        int b=4;
        System.out.println(a/b);
        int c=214748364;
        int d=c+1;
        System.out.println(d);//溢出了.*/
        //3)基本数据：long
        /*long d=25L;
        long e=2500000000L;
        int a=1000000000;
        long b=1000000000L*18*30;
        System.out.println(b);
        int c=100000000*2*1000;*/
        //4)基本数据类型的联系：double
       /* double a=3.15;
        double b=6.0;

        double c=3;
        double d=2.9;
        System.out.println(c-d);*/
        //5)基本数据类型:boolean
       /* boolean a= true;
        boolean b=false;
        boolean c=25;*/
        //6)基本数据：char
       /* char a='a';
        char A='A';
        char b='帅';
        char aa=9999;
        char v='0';
        char p='\'';*/
        //7)
        /*int a=3;
        long b=a;
        int c=(int)b;

        double e=5;
        System.out.println(e);

        long r=10000000000000000L;
        int g=(int) r;
        System.out.println(g);
         double h=3.14;
         int i = (int)h;
        System.out.println(i);*/
        //8)基本数据类型的转换
        byte b1=5;
        byte b2=3;
        byte b3=(byte)(b2+b1);


        System.out.println(2+2);
        System.out.println(2+'2');
        System.out.println('2'+'2');









    }
}
